#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

class Foo:
    def __init__(self, name):
        self.name = name

    def running(self):
        print("{} 喜欢跑步".format(self.name))


class Hei(Foo):
    pass


he = Hei("小黑")
he.running()
print(Hei.__bases__)  # (<class '__main__.Foo'>,)
print(Foo.__bases__)  # (<class 'object'>,)